#ifndef KABUTTON_H
#define KABUTTON_H

#include <QPushButton>

class KAButton : public QPushButton
{
    Q_OBJECT
public:
    KAButton(QWidget *parent = nullptr);
    KAButton(QString strText, QWidget *parent = nullptr);
    QString getElidedText(QFont font,int width,QString strInfo);
public slots:
    void setText(const QString &);

protected:
    void paintEvent(QPaintEvent *event);

private:
    QString m_strText;
};

#endif // KABUTTON_H
